<div id="postsList">
    <?php
    if (!empty($this->posts)) {
        //var_dump($this->posts);die;

        foreach ($this->posts as $post) {

            $title = $this->link($this->U('blog',
                                          'list',
                                          null,
                                          array('post' => $post->postId,
                                                'title' => preg_replace('/[^\w]+/', '-', $post->postUrlTitle))),
                                 '<h2>' . $this->E($post->fetchDetailByLocale()->detailTitle) . '</h2>');
?>
            <div id="post<?php echo $post->postId; ?>" class="posts fc">

                <div class="postMain fc">

                    <div class="cl" style="height:35px;">&nbsp;</div>

                    <div class="postTitle fl"><?php echo $title; ?></div>

                    <div class="cl" style="height:1px;">&nbsp;</div>

                    <div class="postInfo">
                        <?php
                        echo $this->date($post->postCreatedAt);
                        ?>
                    </div>

                    <div class="cl" style="height:25px;">&nbsp;</div>

                    <div class="postContent fc"><?php echo $post->fetchDetailByLocale()->detailContent; ?></div>

                    <div class="cl" style="height:35px;">&nbsp;</div>

                </div>

            </div>

            <div class="cl" style="height:40px;">&nbsp;</div>
    <?php
        }
    }
    ?>
</div>